package com.ly.honor.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.honor.entity.GoodsOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.honor.entity.User;
import com.ly.honor.entity.dto.OrderQueryDTO;
import com.ly.honor.entity.vo.GoodsQueryVO;
import com.ly.honor.entity.vo.OrderQueryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 17798
* @description 针对表【bs_goods_order】的数据库操作Mapper
* @createDate 2023-03-31 17:13:43
* @Entity com/ly/honor.entity.GoodsOrder
*/
@Mapper
public interface GoodsOrderMapper extends BaseMapper<GoodsOrder> {

    Page<OrderQueryVO> getOrderPage(Page<OrderQueryVO> page, @Param("order") OrderQueryDTO orderQueryDTO);

    OrderQueryVO getOrderById(@Param("orderId") Integer id);

    List<OrderQueryVO> getOrderByOrderStatus(@Param("orderStatusId") Integer orderStatusId, @Param("user") User user);

    List<OrderQueryVO> getOrderByUser(@Param("user")User user);
}




